//
//  SearchSuggestionCityModel.h
//  o_amap
//
//  Created by Q神 on 2021/4/19.
//

#import <Foundation/Foundation.h>
#import <AMapSearchKit/AMapSearchKit.h>
#import "LatLngModel.h"

@class SearchDistrictModel;

NS_ASSUME_NONNULL_BEGIN

@interface SearchSuggestionCityModel : NSObject

///城市名称
@property (nonatomic, copy) NSString  *cityName;
///城市编码
@property (nonatomic, copy) NSString  *cityCode;
///城市区域编码
@property (nonatomic, copy) NSString  *adCode;
///此区域的建议结果数目, AMapSuggestion 中使用
@property (nonatomic, assign) NSInteger  suggestionNum;
///途径区域 AMapDistrict 数组，AMepStep中使用，只有name和adcode。
@property (nonatomic, strong) NSArray<SearchDistrictModel *> *districts;


+ (NSArray<SearchSuggestionCityModel *> *)createPoiResultModelWithCitys:(NSArray<AMapCity *> *)arrays;

@end


@interface SearchDistrictModel : NSObject

///区域编码
@property (nonatomic, copy)   NSString     *adcode;
///城市编码
@property (nonatomic, copy)   NSString     *citycode;
///行政区名称
@property (nonatomic, copy)   NSString     *name;
///级别
@property (nonatomic, copy)   NSString     *level;
///城市中心点
@property (nonatomic, copy)   LatLngModel *center;
///下级行政区域数组
@property (nonatomic, strong) NSArray<SearchDistrictModel *> *districts;
///行政区边界坐标点, NSString 数组
@property (nonatomic, strong) NSArray<NSString *> *polylines;

@end

NS_ASSUME_NONNULL_END
